<?php get_header();  ?>

<?php if (is_home()) add_filter('img_caption_shortcode', create_function('$a, $b, $c','return $c;'), 10, 3); ?> 

<div id="column1">
	<!--BEGIN OF FEATURED NEWS-->
	<?php if (get_theme_mod('featured') == 'Yes') { ?>
	<div id="featured">
		<div class="boxleft" style="margin:0px;">
		 	<?php $recent = new WP_Query("cat=".get_theme_mod('featuredcat')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
				<div class="featuredthumb"><?php tj_thumbnail(featuredthumbw, featuredthumbh); ?>
                <div class="featuredpost"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></div>
                </div>
			<?php endwhile; ?>	
		</div> <!--end: boxleft-->
		<div class="boxright" style="margin:0px;">
			<?php $recent = new WP_Query("cat=".get_theme_mod('featuredcat')."&offset=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
				<h1><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
				<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('85'); ?>
			<?php endwhile; ?>	
			<?php $recent = new WP_Query("cat=".get_theme_mod('featuredcat')."&offset=2&showposts=".get_theme_mod('featuredlist')); while($recent->have_posts()) : $recent->the_post();?>
				<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
				<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('85'); ?>
			<?php endwhile; ?>	
		</div> <!--end: boxright-->
	<div class="clear"></div>
	</div> <!--end: featured-->	
	<?php } ?>
	<!--END OF FEATURED NEWS-->
		
	<!--BEGIN OF BREAKING NEWS-->	
    <?php if (get_theme_mod('breaking') == 'Yes') { ?>
	<div id="breaking">
		<h1 class="widgettitle"><a href="<?php echo get_category_link(get_theme_mod('breakingcat')); ?>"><?php echo cat_id_to_name(get_theme_mod('breakingcat')); ?></a></h1>
		<?php $recent = new WP_Query("cat=".get_theme_mod('breakingcat')."&showposts=".get_theme_mod('breakinglist')); while($recent->have_posts()) : $recent->the_post();?>
		<div class="breakingbox">
			<?php tj_thumbnail(breakingthumbw, breakingthumbh); ?>
			<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
		<div class="clear"></div>
		</div> <!--end: breakingbox-->
	    <?php endwhile; ?> 	      	
	 <div class="clear"></div>
	 </div> <!--end: breaking-->
	 <?php } ?>
	<!--END OF BREAKING NEWS-->
		
	<div class="clear"></div>
		
	<!--BEGIN OF BOX #1-->
	<?php if (get_theme_mod('box1') == 'Enable') { ?>
	<div class="postbox">
	<h1 class="widgettitle"><a href="<?php echo get_category_link(get_theme_mod('boxcat1')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat1')); ?></a></h1>
		<div class="boxleft">
			<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat1')."&offset=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
		  		<h2 class="normal"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
		  		<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('150'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
		  	<?php endwhile; ?>   
		    <ul>
		    	<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat1')."&offset=2&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
		      		<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
		      	<?php endwhile; ?>   
		    </ul>
		</div> <!--end: boxleft-->
		<div class="boxright">
		  	<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat1')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
		  		<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
		  		<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
		  		<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('175'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
			<?php endwhile; ?>
		</div> <!--end: boxright-->	 
		<div class="clear"></div>
		</div> <!--end: postbox-->
	<?php } ?>
	<!--END OF BOX #1-->
	
	<div class="clear"></div>
		
	<!--BEGIN OF BOX #2-->
	<?php if (get_theme_mod('box2') == 'Enable') { ?>
	<div class="postbox">
	<h1 class="widgettitle"><a href="<?php echo get_category_link(get_theme_mod('boxcat2')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat2')); ?></a></h1>
		<div class="boxleft">
			<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat2')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
				<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
				<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
				<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('175'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
			<?php endwhile; ?>
		</div> <!--end: boxleft-->
		<div class="boxright">
			<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat2')."&offset=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
				<h2 class="normal"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
				<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('150'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
			<?php endwhile; ?>   
			<ul>
				<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat2')."&offset=2&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
			  		<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
			  	<?php endwhile; ?>   
			</ul>	
		</div> <!--end: boxright-->	 
		<div class="clear"></div>
		</div> <!--end: postbox-->
	<?php } ?>
	<!--END OF BOX #2-->
		
	<div class="clear"></div>
	
	<!--BEGIN OF BOX #3-->
	<?php if (get_theme_mod('box3') == 'Enable') { ?>
	<div class="postbox">
	<h1 class="widgettitle"><a href="<?php echo get_category_link(get_theme_mod('boxcat3')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat3')); ?></a></h1>
		<div class="boxleft">
			<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat3')."&offset=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
		  		<h2 class="normal"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
		  		<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('150'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
		  	<?php endwhile; ?>   
		    <ul>
		    	<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat3')."&offset=2&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
		      		<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
		      	<?php endwhile; ?>   
		    </ul>
		</div> <!--end: boxleft-->
		<div class="boxright">
		  	<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat3')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
		  		<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
		  		<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
		  		<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('175'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
			<?php endwhile; ?>
		</div> <!--end: boxright-->	 
		<div class="clear"></div>
		</div> <!--end: postbox-->
	<?php } ?>
	<!--END OF BOX #3-->
	
	<div class="clear"></div>
	
	<!--BEGIN OF BOX #4-->
	<?php if (get_theme_mod('box4') == 'Enable') { ?>
	<div class="postbox">
	<h1 class="widgettitle"><a href="<?php echo get_category_link(get_theme_mod('boxcat4')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat4')); ?></a></h1>
		<div class="boxleft">
			<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat4')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
				<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
				<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
				<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('175'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
			<?php endwhile; ?>
		</div> <!--end: boxleft-->
		<div class="boxright">
			<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat4')."&offset=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
				<h2 class="normal"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
				<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('150'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
			<?php endwhile; ?>   
			<ul>
				<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat4')."&offset=2&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
			  		<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
			  	<?php endwhile; ?>   
			</ul>
		</div> <!--end: boxright-->	 
		<div class="clear"></div>
		</div> <!--end: postbox-->
	<?php } ?>
	<!--END OF BOX #4-->
		
	<div class="clear"></div>
	
	<!--BEGIN OF BOX #5-->
	<?php if (get_theme_mod('box5') == 'Enable') { ?>
	<div class="postbox">
	<h1 class="widgettitle"><a href="<?php echo get_category_link(get_theme_mod('boxcat5')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat5')); ?></a></h1>
		<div class="boxleft">
			<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat5')."&offset=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
		  		<h2 class="normal"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
		  		<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('150'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
		  	<?php endwhile; ?>   
		    <ul>
		    	<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat5')."&offset=2&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
		      		<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
		      	<?php endwhile; ?>   
		    </ul>
		</div> <!--end: boxleft-->
		<div class="boxright">
		  	<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat5')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
		  		<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
		  		<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
		  		<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('175'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
			<?php endwhile; ?>
		</div> <!--end: boxright-->	 
		<div class="clear"></div>
		</div> <!--end: postbox-->
	<?php } ?>
	<!--END OF BOX #5-->
	
	<div class="clear"></div>
	
	<!--BEGIN OF BOX #6-->
	<?php if (get_theme_mod('box6') == 'Enable') { ?>
	<div class="postbox">
	<h1 class="widgettitle"><a href="<?php echo get_category_link(get_theme_mod('boxcat6')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat6')); ?></a></h1>
		<div class="boxleft">
			<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat6')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
				<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
				<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
				<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('175'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
			<?php endwhile; ?>
		</div> <!--end: boxleft-->
		<div class="boxright">
			<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat6')."&offset=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
				<h2 class="normal"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
				<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('150'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
			<?php endwhile; ?>   
			<ul>
				<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat6')."&offset=2&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
			  		<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
			  	<?php endwhile; ?>   
			</ul>
			
		</div> <!--end: boxright-->	 
		<div class="clear"></div>
		</div> <!--end: postbox-->
	<?php } ?>
	<!--END OF BOX #6-->
		
	<div class="clear"></div>
	
	<!--BEGIN OF BOX #7-->
	<?php if (get_theme_mod('box7') == 'Enable') { ?>
	<div class="postbox">
	<h1 class="widgettitle"><a href="<?php echo get_category_link(get_theme_mod('boxcat7')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat7')); ?></a></h1>
		<div class="boxleft">
			<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat7')."&offset=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
		  		<h2 class="normal"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
		  		<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('150'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
		  	<?php endwhile; ?>   
		    <ul>
		    	<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat7')."&offset=2&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
		      		<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
		      	<?php endwhile; ?>   
		    </ul>
		</div> <!--end: boxleft-->
		<div class="boxright">
		  	<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat7')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
		  		<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
		  		<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
		  		<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('175'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
			<?php endwhile; ?>
		</div> <!--end: boxright-->	 
		<div class="clear"></div>
		</div> <!--end: postbox-->
	<?php } ?>
	<!--END OF BOX #7-->
	
	<div class="clear"></div>
	
	<!--BEGIN OF BOX #8-->
	<?php if (get_theme_mod('box8') == 'Enable') { ?>
	<div class="postbox">
	<h1 class="widgettitle"><a href="<?php echo get_category_link(get_theme_mod('boxcat8')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat8')); ?></a></h1>
		<div class="boxleft">
			<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat8')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
				<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
				<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
				<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('175'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
			<?php endwhile; ?>
		</div> <!--end: boxleft-->
		<div class="boxright">
			<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat8')."&offset=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
				<h2 class="normal"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
				<span class="date"><?php the_time('M. j'); ?></span><span class="gray"> | </span><?php tj_content_limit('150'); ?> <span class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read more', 'themejunkie'); ?> &raquo;</a></span>
			<?php endwhile; ?>   
			<ul>
				<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat8')."&offset=2&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
			  		<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
			  	<?php endwhile; ?>   
			</ul>
			
		</div> <!--end: boxright-->	 
		<div class="clear"></div>
		</div> <!--end: postbox-->
	<?php } ?>
	<!--END OF BOX #2-->
		
	<div class="clear"></div>

</div> <!--end: column1-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
